package com.cskt.petoms.service.remote;

import com.cskt.common.entity.vo.ResultVO;
import com.cskt.common.entity.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 远程用户service接口
 *
 * @author admin
 **/
//表示当前接口为OpenFeign的客户端 
// value：微服务名;path:当前接口中所有方法的统一的前缀，类似于Controller类上的@RequestMapping
@FeignClient(value = "pet-ums",path = "/ums/user") 
public interface RemoteUserService {

    @GetMapping(value = "/getUserByToken")
    ResultVO<UserInfoVO> getUserByToken(@RequestHeader(value = "Token") String token);
    

}
